package test.designMode.AbstractFactory;

import test.designMode.AbstractFactory.apple.Apple;
import test.designMode.AbstractFactory.apple.WestApple;
import test.designMode.AbstractFactory.banana.Banana;
import test.designMode.AbstractFactory.banana.WestBanana;

public class WestFruitFactory implements FruitFactory {

	@Override
	public Fruit getApple() {
		return new WestApple();
	}

	@Override
	public Fruit getBanana() {
		return new WestBanana();
	}

	public static void main(String[] args) {
		FruitFactory ff = new WestFruitFactory();
		Apple apple =  (Apple)ff.getApple();
		apple.get();
		
		Banana banana = (Banana)ff.getBanana();
		banana.get();
	}
}
